package com.yanfan.usersmart.user;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author wupeng
 * @desc 类的描述.
 * @date 2025/2/8 14:27:19
 */


@Component
public class NettyServerInitializer {

    @Autowired
    private NettyServer nettyServer;

    @PostConstruct
    public void init() {
        new Thread(() -> {
            try {
                nettyServer.userDataByKeAn(7799);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }).start();
    }
}
